<?php

/**
 * work admin form
 *
 * @package    web-game
 * @subpackage work
 * @author     Your name here
 */
class WorkAdminForm extends BaseWorkForm
{
  public function configure()
  {
    parent::configure();
  }
  protected function createMediaFormForImage()  
  {  
    // get the DmMedia form  
    $form = parent::createMediaFormForImage();  
 
    // choose mime types allowed  
    $form->setMimeTypeWhiteList(array(  
      'image/jpeg',  
      'image/png'  
    ));  
   //remove form field for image
    unset($form['legend'], $form['author'], $form['license']);  
    return $form;  
  }
   protected function createMediaFormForDocument()  
  {  
    // get the DmMedia form  
    $form = parent::createMediaFormForDocument();  
 
    // choose mime types allowed  
    $form->setMimeTypeWhiteList(array(  
      'application/pdf',  
      'application/msword', // .doc  
      'application/vnd.oasis.opendocument.text' // .odt  
    ));  
   // remove unnecessary fields  
    unset($form['legend'], $form['author'], $form['license']);  
    return $form;  
  } 
}